From: Jim Blandy Date: Tue, 22 Jun 1993 03:50:08 +0000 (+0000) Subject: * diff.el (diff-parse-differences): Preserve the match data X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95186 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=929cc9de2d35f53d69b1d2cc530684da83b328f3;p=emacs.git * diff.el (diff-parse-differences): Preserve the match data across the call to find-file-noselect. --- diff --git a/lisp/diff.el b/lisp/diff.el index d4c5f5d3a2e..7043c9ac73e 100644 --- a/lisp/diff.el +++ b/lisp/diff.el @@ -113,7 +113,8 @@ is nil, REGEXP matches only half a section.") (match-beginning subexpr) (match-end subexpr))))) (save-excursion - (set-buffer (find-file-noselect file)) + (save-match-data + (set-buffer (find-file-noselect file))) (save-excursion (goto-line line) (point-marker)))))